package com.lanxiaoye.shoppingSystem.dao;

import com.lanxiaoye.shoppingSystem.entity.ShoppingCar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCarMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByUserId(Integer userId);

    int insert(ShoppingCar record);

    int insertSelective(ShoppingCar record);

    ShoppingCar selectByPrimaryKey(Integer id);

    ShoppingCar selectByUserAndGoods(@Param("userId") Integer userId, @Param("goodsId") Integer goodsId);

    List<ShoppingCar> selectByUserId(Integer userId);

    int updateByPrimaryKeySelective(ShoppingCar record);

    int updateByPrimaryKey(ShoppingCar record);
}